package edu.sandau.basic.service;

import edu.sandau.basic.global.GlobalEnum;
import edu.sandau.basic.vo.UserVo;

import edu.sandau.basic.domain.User;
import java.util.List;

public interface UserService {
    GlobalEnum.ErrorCode addUser(UserVo user);
    GlobalEnum.ErrorCode userLogin(String username, String password);

    List<User> listUsers(String username, Boolean isActive);
    User getById(Integer id);
    GlobalEnum.ErrorCode updateUser(Integer id, UserVo user);
    GlobalEnum.ErrorCode deleteUser(Integer id);
}
